package com.ruoyi.storage.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入库对象 entry_record
 * 
 * @author 庞一恺
 * @date 2025-01-20
 */
public class EntryRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库单号 */
    private Integer entryRecordId;

    /** 所在仓库id */
    @Excel(name = "所在仓库id")
    private Integer warehouseId;

    /** 凭据单号 */
    @Excel(name = "凭据单号")
    private String evidenceRecordId;

    /** 入库类型 */
    @Excel(name = "入库类型")
    private String entryType;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date entryDate;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private String entryState;

    /** 创建者 */
    @Excel(name = "创建者")
    private String generatedBy;

    /** 入库详情信息 */
    private List<EntryDetail> entryDetailList;

    public void setEntryRecordId(Integer entryRecordId) 
    {
        this.entryRecordId = entryRecordId;
    }

    public Integer getEntryRecordId() 
    {
        return entryRecordId;
    }
    public void setWarehouseId(Integer warehouseId) 
    {
        this.warehouseId = warehouseId;
    }

    public Integer getWarehouseId() 
    {
        return warehouseId;
    }
    public void setEvidenceRecordId(String evidenceRecordId)
    {
        this.evidenceRecordId = evidenceRecordId;
    }

    public String getEvidenceRecordId()
    {
        return evidenceRecordId;
    }
    public void setEntryType(String entryType) 
    {
        this.entryType = entryType;
    }

    public String getEntryType() 
    {
        return entryType;
    }
    public void setEntryDate(Date entryDate) 
    {
        this.entryDate = entryDate;
    }

    public Date getEntryDate() 
    {
        return entryDate;
    }
    public void setEntryState(String entryState) 
    {
        this.entryState = entryState;
    }

    public String getEntryState() 
    {
        return entryState;
    }
    public void setGeneratedBy(String generatedBy) 
    {
        this.generatedBy = generatedBy;
    }

    public String getGeneratedBy() 
    {
        return generatedBy;
    }

    public List<EntryDetail> getEntryDetailList()
    {
        return entryDetailList;
    }

    public void setEntryDetailList(List<EntryDetail> entryDetailList)
    {
        this.entryDetailList = entryDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("entryRecordId", getEntryRecordId())
            .append("warehouseId", getWarehouseId())
            .append("evidenceRecordId", getEvidenceRecordId())
            .append("entryType", getEntryType())
            .append("entryDate", getEntryDate())
            .append("entryState", getEntryState())
            .append("generatedBy", getGeneratedBy())
            .append("entryDetailList", getEntryDetailList())
            .toString();
    }
}
